<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false" ></script>
<script type="text/javascript">
    
    function intialize() {
    var myLatlng = new google.maps.LatLng(-34.397, 150.644);
    var myOptions = {
      zoom: 8,
      center: myLatlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    
    var map = new google.maps.Map(document.getElementById("map_canvas"),myOptions)
    google.maps.event.addListener(map, 'click', function(event) {
    alert("Hello Map, "+ event.latLng);
    placeMarker(event.latLng);
    document.getElementById("t_moment_f_lat").value = event.latLng.lat()
    document.getElementById("t_moment_f_long").value = event.latLng.lng() 
     });
     function placeMarker(location){
     var marker = new google.maps.Marker({
     position: location,
     map: map  
     }); 
    }
   }
</script>
